<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:text name="context.title"/></title>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript" src="${ctx }/js/jquery.metadata.js"></script>
<link href="${ctx}/js/uploadify/uploadify.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript">
	$(document).ready(function(){
		$("#main").validate({});
		$(".inpuslass").bind("keyup",function (){
			var sums =0.0;
			$("#table").find("input[type=text]").each(function(inx,obj){
				var val = $(obj).val() == "" ? 0 :$(obj).val() *1;
				sums += val*1;
				});
			$("#sumScore").text(sums);

		}); 
				
		});
	
</script>
</head>
<body>
<form action="score" method="post" id="main">
<s:token></s:token>
<br/>
<p align="center"><s:actionmessage theme="mytheme" cssClass="actionMessage"/></p>
<h1 class="title01"><img src="${ctx}/images/02_15.gif" width="45" height="42" class="fl"/>中期答辩论文及学生</h1>
<input type="hidden" name="id" value="${thesis.id }"/>
<table class="inputTable">
	<tr>
    <td>
          
    <table border="0"  cellspacing="1" width="757" bgcolor="#000000" align="center">
    <tr bgcolor="#d8d8d8" align="center"  >
    <td width=100 height="37" class="STYLE4" >指导教师&nbsp;</td>
    <td width=97 class="STYLE3" >${thesis.teacherName }&nbsp;</td>
    <td width=92 align="center" class="STYLE4" >职称&nbsp;</td>
    <td class="STYLE3" >${thesis.teacherPost }&nbsp;</td>
    <td width=92 align="center" class="STYLE4" >学生姓名&nbsp;</td>
    <td class="STYLE3" >${thesis.studentName }&nbsp;</td>
    </tr>
    <tr bgcolor="#d8d8d8">
    <td width=100 height="41" class="STYLE5" align="center" >题目名称&nbsp;</td>
	<td colspan=5 class="STYLE3">${thesis.titile }&nbsp;</td>
    </tr>
	</table>
	 
    <table border="0"  cellspacing="1" width="757" bgcolor="#000000" align="center" id="table">
      <tr bgcolor="#d8d8d8">
		<th width="42" height="28" class="STYLE5"><div align="left">序号</div></th>
        <th width="519" height="28" class="STYLE5"><div align="left">评分依据</div></th>
        <th width="86" height="28" class="STYLE5"><div align="left">参考分值</div></th>
        <th width="97" height="28" class="STYLE5"><div align="left">教师评分</div></th>
		</tr>
	<s:iterator value="pingfenyiju" status="st" var="v">
	<tr bgcolor="#d8d8d8">
    	<td width="42"class="STYLE5">${st.index+1 }&nbsp;</td>
    	<td width="519"class="STYLE5">${v.pcnm }&nbsp;</td>
    	<td width="86"class="STYLE5">${v.memo }分&nbsp;</td>
    	<td width="97"class="STYLE5"> 
    		<input   type="text" name="valueMap[${v.id }]" value="<s:property value="valueMap[#v.id]"/>" size=5 class="{number:true,required:true,max:${v.memo }} inpuslass"style="background-color:white" />
    	&nbsp;</td>
	</tr>
	</s:iterator>
    
    <tr bgcolor="#d8d8d8">
    <td width="42"class="STYLE5">3&nbsp;</td>
    <td colspan="2"class="STYLE5">成绩合计&nbsp;</td>
    
    <td width="97"class="STYLE5"><span id="sumScore">${thesis.middleScore }</span>&nbsp;</td>
	</tr>
    </table>
    <table border="0"  cellspacing="1" width="757" bgcolor="#000000" align="center">
      
	<tr bgcolor="#d8d8d8"><td width="651"class="STYLE5">
     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 填报成绩教师签字： ${loginTeacher.teacherName } &nbsp;&nbsp;&nbsp; <s:date name="@com.suitsoft.ut.util.DateUtils@getCurrentDate()" format="yyyy年MM月dd日"/>
       </p>
    &nbsp;</td>
	</tr>
    </table>
  	<table align="center">
  		<tr>
  			<tc:timeControler authName="中 期">
  			<td align="left"><input value="提交" type="submit" name="method:save" onclick="return confirm('确定提交?')"/>&nbsp;</td>
  			</tc:timeControler>
  			<td align="right"><input type="button" onclick="history.back();" value="返回"/>&nbsp;</td>
  		</tr>
  	</table>
  
 </table>
</form>
</body>

</html>